// 导入自己的router.js模块
import VueRouter from 'vue-router';

// 导入tabbar对应的组件
import Home from './components/tabbar/home.vue';
import Member from './components/tabbar/member.vue';
import Search from './components/tabbar/search.vue';
import Shopcar from './components/tabbar/shopcar.vue';

var router = new VueRouter({
    routes:[
       { path: '/', redirect: '/home' },
       { path: '/home', component: Home },
       { path: '/member', component: Member },
       { path: '/search', component: Search },
       { path: '/shopcar', component: Shopcar },
    ],
    linkActiveClass: 'mui-active'
})
export default router;